﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SeleniumExtension
{
    public class Program
    {
        public static void Main(string[] args)
        {
            //Conventional Execution
            var result1 = SeleniumExtension.Engine.Core.Run(new Models.Options() { TakeScreenShot = true });
            
            //Dynamic NUnit Test Case execution
            var result2 = SeleniumExtension.Engine.DynamicCodeExecution.AutoExecuteCode();

            if (result1 != null)
                foreach (var item in result1)
                {
                    Console.WriteLine(string.Format("{0} <-> {1) : {2}", item.Url, item.Keyword, item.Status));
                }

            if (result2 != null)
                foreach (var item in result2)
                {
                    Console.WriteLine(string.Format("{0} <-> {1) : {2}", item.Url, item.Keyword, item.Status));
                }

        }
    }
}
